-- GENERATED SPELL FOR [Dawnblade Summoner] --


function spell0_24978(pUnit, Event) --@Fel Armor,Self--
pUnit:FullCastSpellOnTarget(44977,pUnit)
pUnit:RegisterEvent('Sorts_24978', 536, 1)
end

function spell1_24978(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24978', 17000, 1)
end

function spell2_24978(pUnit, Event) --@Incinerate,n/a--
pUnit:FullCastSpellOnTarget(32707,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24978', 2500, 1)
end

function spell3_24978(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_24978', 607, 1)
end

function Sorts_24978(pUnit, Event)
local choix_sorts_24978 = math.random(0, 3)
if choix_sorts_24978 == 0 then
pUnit:RegisterEvent('spell0_24978', 1, 1)
end
if choix_sorts_24978 == 1 then
pUnit:RegisterEvent('spell1_24978', 1, 1)
end
if choix_sorts_24978 == 2 then
pUnit:RegisterEvent('spell2_24978', 1, 1)
end
if choix_sorts_24978 == 3 then
pUnit:RegisterEvent('spell3_24978', 1, 1)
end
end

function mob24978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24978', math.random(1500, 3000), 1)
end

function mob24978_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24978_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24978_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24978, 1, 'mob24978_Action')
RegisterUnitEvent(24978, 2, 'mob24978_Leave')
RegisterUnitEvent(24978, 3, 'mob24978_Kill')
RegisterUnitEvent(24978, 4, 'mob24978_Die')
